package com.framework.bdf4j.idesupport.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import lombok.extern.slf4j.Slf4j;

/**
 * trade run environment  兼容1.0版本交易运行环境
 * 导入老版本的技术组件依赖的SpringContextHolder 类注册
 * 
 * @author lmc
 * @date 2020/05/07
 */
@Slf4j
public class TreSpringContextHolder implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        log.info("init import class SpringContextHolder");
        return new String[] {"com.ylink.bdf.base.util.SpringContextHolder"};
    }

}
